#include <iostream>


template<typename T>
T minimum(T x, T y)
{
    return x < y ? x : y;
}
int main()
{
    int a = 2;
    int b = 4;
    std::cout << "integer: " << minimum(a, b) << std::endl;

    char a1 = 'a';
    char b1 = 'A';
    std::cout << "char: " << minimum(a1, b1) << std::endl;

    float a2 = 8.9f;
    float b2 = 9.2f;
    std::cout << "float: " << minimum(a2, b2) << std::endl;

}